blob: ae03ce6a440dc7d380a84f3f0581a8e9cae67fbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#![feature(re_rebalance_coherence)]
// compile-flags:--crate-name=test
// aux-build:coherence_lib.rs
// check-pass
extern crate coherence_lib as lib;
use lib::*;
use std::rc::Rc;
struct Local;
struct Local1<T>(Rc<T>);
impl Remote for Box<Local> {}
impl<T> Remote for Box<Local1<T>> {}
fn main() {}
|